package com.rxst.msg.dto.save;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备授权表
 *
 * @author rxst
 * @email rxst@gmail.com
 * @date 2021-08-19 11:47:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MsgxEquipmentSaveDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 设备MAc地址
     */
    @ApiModelProperty(value = "设备MAc地址", example = "0A-2B", notes = "设备MAc地址")
    private String equipmentMac;
    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", example = "0A-2B", notes = "设备名称")
    private String equipmentName;
    /**
     * 授权开始时间
     */
    @ApiModelProperty(value = "授权开始时间", example = "2021-08-19 00:00:00", notes = "授权开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date equipmentAuthStartTime;
    /**
     * 授权结束时间
     */
    @ApiModelProperty(value = "授权结束时间", example = "2021-08-19 00:00:00", notes = "授权结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date equipmentAuthEndTime;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2021-08-19 00:00:00", notes = "创建时间" ,dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", example = "2021-08-19 00:00:00", notes = "修改时间",dataType = "String")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}
